package com.sojoys.artifact.tools;

import com.alibaba.fastjson.annotation.JSONField;

public class RenderBean {
	/**
	 * 状态：0 成功 其他失败
	 */
	private int status = 0;

	/**
	 * 错误描述
	 */
	private String description = "";

	/**
	 * 正常情况下返回的数据
	 */
	private Object data;
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}


	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	@JSONField(serialize = false)
	public boolean isSuccess(){
		return status==0;
	}
}